package cn.yeziji.forum.entity;

import cn.org.atool.fluent.mybatis.annotation.FluentMybatis;
import cn.org.atool.fluent.mybatis.annotation.TableField;
import cn.org.atool.fluent.mybatis.annotation.TableId;
import cn.org.atool.fluent.mybatis.base.RichEntity;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * ForumUserDetailEntity: 数据映射实体定义
 *
 * @author Powered By Fluent Mybatis
 */
@SuppressWarnings({"rawtypes", "unchecked"})
@Data
@Accessors(
    chain = true
)
@EqualsAndHashCode(
    callSuper = false
)
@FluentMybatis(
    table = "forum_user_detail",
    schema = "yzj_forum"
)
public class ForumUserDetailEntity extends RichEntity {
  private static final long serialVersionUID = 1L;

  /**
   */
  @TableId(
      value = "id",
      auto = false
  )
  private Integer id;

  /**
   */
  @TableField("createTime")
  private Date createTime;

  /**
   * 文章id
   */
  @TableField("detailId")
  private Integer detailId;

  /**
   * 收藏
   */
  @TableField("toCollection")
  private Boolean toCollection;

  /**
   * 评论
   */
  @TableField("toComment")
  private Boolean toComment;

  /**
   * 点赞
   */
  @TableField("toGood")
  private Boolean toGood;

  /**
   * 评分
   */
  @TableField("toRate")
  private BigDecimal toRate;

  /**
   */
  @TableField("updateTime")
  private Date updateTime;

  /**
   * 用户id
   */
  @TableField("userId")
  private Integer userId;

  @Override
  public final Class entityClass() {
    return ForumUserDetailEntity.class;
  }
}
